﻿@model S4Store.Models.SellerCarBrand.InputDataModel
@{
    ViewBag.Title = "InputData";
    Layout = null;
}

<style type="text/css">
.style0
	{
	text-align:general;
	vertical-align:bottom;
	white-space:nowrap;
	
	
	
	color:windowtext;
	
	
	font-style:normal;
	text-decoration:none;
	font-family:宋体;
	
	
	border:none;
	
	
	}
.font12
	{color:windowtext;
	
	
	font-style:normal;
	text-decoration:none;
	
	}
td
	{
	padding-top:1px;
	padding-right:1px;
	padding-left:1px;
	
	color:windowtext;
	
	
	font-style:normal;
	text-decoration:none;
	font-family:宋体;
	
	
	
	text-align:general;
	vertical-align:bottom;
	border:none;
	
	
	
	white-space:nowrap;
	}
.xl65
	{
	
	
	}
.xl66
	{
	white-space:normal;}
.xl67
	{
	}
.xl68
	{
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	
	white-space:normal;}
.xl69
	{
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	}
.xl70
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	}
.xl71
	{
	
	
	
	text-align:center;
	vertical-align:top;
	border:.5pt solid windowtext;
	background:#FFFFCC;
	
	white-space:normal;}
.xl72
	{
	
	
	
	text-align:center;
	vertical-align:top;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	
	white-space:normal;}
.xl73
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	}
.xl74
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	
	}
.xl75
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	
	}
.xl76
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl77
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl78
	{
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl79
	{
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl80
	{
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl81
	{
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl82
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	
	
	white-space:normal;}
.xl83
	{
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl84
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl85
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border-top:.5pt solid windowtext;
	border-right:.5pt solid windowtext;
	border-bottom:none;
	border-left:.5pt solid windowtext;
	background:#FFFFCC;
	
	}
.xl86
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border-top:none;
	border-right:.5pt solid windowtext;
	border-bottom:none;
	border-left:.5pt solid windowtext;
	background:#FFFFCC;
	
	}
.xl87
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border-top:none;
	border-right:.5pt solid windowtext;
	border-bottom:.5pt solid windowtext;
	border-left:.5pt solid windowtext;
	background:#FFFFCC;
	
	}
.xl88
	{
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl89
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#DBE5F1;
	}
.xl90
	{
	font-size:20.0pt;
	
	
	
	text-align:center;
	vertical-align:middle;}
.xl91
	{
	
	text-align:center;
	vertical-align:middle;
	}
.xl92
	{
	
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	}
.xl93
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	}
.xl94
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#D7E4BC;
	
	}
.xl95
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border:.5pt solid windowtext;
	background:#D7E4BC;
	
	}
.xl96
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border-top:.5pt solid windowtext;
	border-right:none;
	border-bottom:.5pt solid windowtext;
	border-left:.5pt solid windowtext;
	background:#D7E4BC;
	
	}
.xl97
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border-top:.5pt solid windowtext;
	border-right:none;
	border-bottom:.5pt solid windowtext;
	border-left:none;
	background:#D7E4BC;
	
	}
.xl98
	{
	
	
	
	
	text-align:center;
	vertical-align:middle;
	border-top:.5pt solid windowtext;
	border-right:.5pt solid windowtext;
	border-bottom:.5pt solid windowtext;
	border-left:none;
	background:#D7E4BC;
	
	}
.reporttable td,.reporttable th
{
    padding:5px;
}
.reporttable th
{
    text-align:center;
}
.reporttable th div
{
    width:20px; 
    display:inline-block; 
}
</style>
<div class="verticalSplitContainer" style="height:100%;width:100%; overflow:hidden">
<div style="width:100%; height:30px; background:#E5EDEF" ratio="#30">
    <div style=" padding:5px 10px">
        <form action="@Url.Action("InputData", "SellerCarBrand")">
        <select class="storechooser" name="Month">
            @for (DateTime dt=DateTime.Now;dt>DateTime.Now.AddYears(-1);dt=dt.AddMonths(-1))
            {
                <option  value="@dt.ToString("yyyy-MM-01")" @if (dt.Year == Model.Month.Year&&dt.Month==Model.Month.Month)
                                                            {<text>selected="selected"</text>}>@dt.ToString("yyyy-MM")</option>
            }
        </select>
        </form>
    </div>
</div>


<form  class="pageForm addpage" action="@Url.Action("Add")" method="post" ratio="*"  style="height:100%;width:100%; overflow:hidden">

<div class=" verticalSplitContainer" style="height:100%;width:100%; overflow:hidden">
<div class="pageFormContent" style="overflow: auto;" ratio="*">
<table style="border-collapse:collapse;" class="reporttable">
 <tbody>
 <tr height="36"  class="xl67">
  <td height="36" class="xl70" colspan="5">店：@Model.Table.Store.Name</td>
  <td class="xl70"></td>
  <td class="xl70" colspan="13"></td>
  <td class="xl70" colspan="3">时间：@Model.Table.CurrentDate.ToString("yyyy-MM")</td>
  <td class="xl70" colspan="13"></td>
  <td class="xl70" colspan="3"></td>
  <td class="xl70"></td>
  <td class="xl91" colspan="13"></td>
 </tr>
 <tr style="height:28.5pt" class="xl67">
  <td height="38" style="height:28.5pt" class="xl94" colspan="2">本月执行天数：</td>
  <td  class="xl93" colspan="2">@Model.Table.Days</td>
  <td  class="xl94" colspan="4">已执行天数：</td>
  <td  class="xl93" colspan="2">@Model.Table.ExcuteDays</td>
  <td  class="xl94" colspan="4">时间进度：</td>
  <td  class="xl92" colspan="2">@(Model.Table.RateOfTime)%</td>
  <td  class="xl94" colspan="4">销量进度：</td>
  <td  class="xl92" colspan="2">@(Model.Table.RateOfSalesVolume)%</td>
  <td  class="xl96" colspan="8">销量时间进度差：</td>
  <td  class="xl92" colspan="3">@(Model.Table.RateOfSalesDiff)%</td>
  <td  class="xl94" colspan="4">集客进度：</td>
  <td  class="xl92" colspan="2">@(Model.Table.RateOfCollectCustomers)%</td>
  <td  class="xl95" colspan="5">集客时间进度差：</td>
  <td  class="xl92" colspan="2">@(Model.Table.RateOfCollectCustomersDiff)%</td>
  <td  class="xl94" colspan="4">上月平均成交率</td>
  <td  class="xl92" colspan="2">@(Model.Table.LastMonthData.AvgVr)%</td>
 </tr>
 <tr height="198" style="height:148.5pt" class="xl66">
  <th width="107"  class="xl71"><div>销售顾问姓名</div></th>
  <th width="65" style="width:49pt" class="xl71"><div>车型</div></th>
  <th width="37" style="width:28pt" class="xl72"><div>目标首次来店接待批次</div></th>
  <th width="37" style="width:28pt" class="xl71"><div>月初尚存意向客户数</div></th>
  <th width="38" style="width:29pt" class="xl71"><div>首次来店接待批次</div></th>
  <th width="39" style="width:29pt" class="xl72"><div>首次来店登记数目标</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>首次来店客户登记数</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>有效A卡建卡数</div></th>
  <th width="34" style="width:26pt" class="xl71"><div>试驾邀请书填写数</div></th>
  <th width="35" style="width:26pt" class="xl71"><div>试驾客户未成交数</div></th>
  <th width="38" style="width:29pt" class="xl71"><div>商谈明细表填写数</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>超限价格成交数</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>当月累计二手车评估数</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>当月累计置换成交数</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>当月累计按揭成交数</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>上月遗留客户新增订单</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>当月客户新增订单数</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>当月累计交车数</div></th>
  <th width="37" style="width:28pt" class="xl71"><div>新车保险投保数</div></th>
  <th width="49" style="width:37pt" class="xl71"><div>当月保险销售总额(万)</div></th>
  <th width="42" style="width:32pt" class="xl71"><div>精装套餐车销售数量</div></th>
  <th width="51" style="width:38pt" class="xl71"><div>当月装潢销售总额(万)</div></th>
  <th width="41" style="width:31pt" class="xl71"><div>当月新车延保数</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>二次成功邀约客户数</div></th>
  <th width="36" style="width:27pt" class="xl71"><div>当月老 客户推荐成交数</div></th>
  <th width="38" style="width:29pt" class="xl71"><div>当月销量目标</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>当月销量完成进度</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>当月销量进度差</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>来店批次完成进度</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>来店批次进度差</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>当月登记客户完成进度</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>登记客户进度差率</div></th>
  <th width="37" style="width:28pt" class="xl72"><div>当月目标完成率</div></th>
  <th width="39" style="width:29pt" class="xl72"><div>首次来店登记率</div></th>
  <th width="37" style="width:28pt" class="xl72"><div>A卡需求完整分析率</div></th>
  <th width="36" style="width:27pt" class="xl72"><div>试乘试驾率</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>试乘试驾成交率</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>商谈明细表填写率</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>上月遗留客户转化率</div></th>
  <th width="35" style="width:26pt" class="xl72"><div>当月登记客户成交率</div></th>
  <th width="35" style="width:26pt" class="xl72"><div>订单交车转化率</div></th>
  <th width="36" style="width:27pt" class="xl72"><div>超限成交率</div></th>
  <th width="37" style="width:28pt" class="xl72"><div>当月二手车评估率</div></th>
  <th width="37" style="width:28pt" class="xl72"><div>当月置换率</div></th>
  <th width="37" style="width:28pt" class="xl72"><div>当月保险率</div></th>
  <th width="35" style="width:26pt" class="xl72"><div>当月按揭成交率</div></th>
  <th width="44" style="width:33pt" class="xl72"><div>平均单车保险额(万)</div></th>
  <th width="37" style="width:28pt" class="xl72"><div>精装车销售率</div></th>
  <th width="49" style="width:37pt" class="xl72"><div>平均单车装潢额(万)</div></th>
  <th width="36" style="width:27pt" class="xl72"><div>新车延保实现率</div></th>
  <th width="37" style="width:28pt" class="xl72"><div>二次邀约成功率</div></th>
  <th width="38" style="width:29pt" class="xl72"><div>老客户推荐成功率</div></th>
 </tr>
 @{int index=-1;}
 @foreach (var sr in Model.SellerRows)
 {
     for (int i = 0; i < sr.Rows.Count; i++)
     {
         var row = sr.Rows[i];        
         index++;
         <tr height="26" style="height:19.5pt" class="xl65">
            @if (i == 0)
            {
            <td height="104" class="xl85" rowspan="@sr.Rows.Count">@sr.Seller.Name</td>
            }
          <td  class="xl69">
          @row.CarBrand.Name
          <input type="hidden" value="@row.SellerId" name="rows[@(index)].SellerId" />
          <input type="hidden" value="@row.CarBrandId" name="rows[@(index)].CarBrandId" />
          <input type="hidden" name="rows[@(index)].Month" value="@Model.Table.CurrentDate.ToString("yyyy-MM-01")" />
          @if(row.Id!=0){              
            <input type="hidden" value="@row.Id" name="rows[@(index)].Id" />              
          }
          </td>
          <td  class="xl75"></td>
          <td  class="xl73"><input type="text" name="rows[@(index)].D" value="@row.D" class="w20 ipt" /></td>
          <td width="38" style="width:29pt" class="xl68"><input type="text" name="rows[@(index)].E" value="@row.E" class="w20 ipt" /></td>
          <td width="39" style="width:29pt" class="xl82"></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].G" value="@row.G" class="w20 ipt" /></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].H" value="@row.H" class="w20 ipt" /></td>
          <td width="34" style="width:26pt" class="xl68"><input type="text" name="rows[@(index)].I" value="@row.I" class="w20 ipt" /></td>
          <td width="35" style="width:26pt" class="xl68"><input type="text" name="rows[@(index)].J" value="@row.J" class="w20 ipt" /></td>
          <td width="38" style="width:29pt" class="xl68"><input type="text" name="rows[@(index)].K" value="@row.K" class="w20 ipt" /></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].L" value="@row.L" class="w20 ipt" /></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].M" value="@row.M" class="w20 ipt" /></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].N" value="@row.N" class="w20 ipt" /></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].O" value="@row.O" class="w20 ipt" /></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].P" value="@row.P" class="w20 ipt" /></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].Q" value="@row.Q" class="w20 ipt" /></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].R" value="@row.R" class="w20 ipt" /></td>
          <td width="37" style="width:28pt" class="xl68"><input type="text" name="rows[@(index)].S" value="@row.S" class="w20 ipt" /></td>
          <td width="49" style="width:37pt" class="xl68"><input type="text" name="rows[@(index)].T" value="@row.T" class="w20 ipt" /></td>
          <td width="42" style="width:32pt" class="xl68"><input type="text" name="rows[@(index)].U" value="@row.U" class="w20 ipt" /></td>
          <td width="51" style="width:38pt" class="xl68"><input type="text" name="rows[@(index)].V" value="@row.V" class="w20 ipt" /></td>
          <td width="41" style="width:31pt" class="xl68"><input type="text" name="rows[@(index)].W" value="@row.W" class="w20 ipt" /></td>
          <td width="36" style="width:27pt" class="xl68"><input type="text" name="rows[@(index)].X" value="@row.X" class="w20 ipt" /></td>
          <td  class="xl69"><input type="text" name="rows[@(index)].Y" value="@row.Y" class="w20 ipt" /></td>
          <td  class="xl69"><input type="text" name="rows[@(index)].Z" value="@row.Z" class="w20 ipt" /></td>
          <td  class="xl74"></td>
          <td  class="xl74"></td>
          <td  class="xl74"></td>
          <td  class="xl74"></td>
          <td  class="xl74"></td>
          <td  class="xl74"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
          <td  class="xl76"></td>
         </tr>
     }
 }
</tbody></table>
</div>
		<div class="formBar" ratio="#30">
			<ul>
                <li><div class="simplebutton"><div class="r"><button type="button" class="submit">保存</button></div></div></li>	
			</ul>
		</div>
</div>
</form>

</div>
